using System;
using System.Collections.Generic;
using System.Text;

namespace ControladorDifuso.Normas.T_Normas
{
    public class Weber:ControladorDifuso.Normas.Norma
    {
        decimal lambda;
        public decimal Lambda
        {
            get
            {
                return this.lambda;
            }
            set
            {
                if (value >= -1)
                    this.lambda = value;
            }
        }
        public override decimal calcular(decimal a, decimal b)
        {
            if (a == 1)
                return b;
            if (b == 1)
                return a;
            return decimal.Zero;
        }

        public override string ToString()
        {
            return " y ";
        }
    }
}
